package com.example.demoview;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class mytest {


    @RequestMapping("/test")
    public ModelAndView test(){
        ModelAndView  model = new ModelAndView();
        model.setViewName("/test");//界面路径
        return  model;
    }
}
